package com.dcd.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
/*销量表*/
public class Sales implements Serializable {

    private int sales_id;//销量id
    private int sales_car_series_fk_id;//车系id
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sales_sell_date;//出售日期
    private int sales_count;//销量

    //扩展字段
    private Integer newtime;

}
